<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/10/6
  Time: 10:05
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品信息新增</title>
    <style rel="stylesheet">
        #maindiv{
            margin: 50px auto;
            width: 20%;
        }
    </style>
    <!--引入bootstrap的css文件-->
    <link href="${pageContext.request.contextPath}/static/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
    <!--引入jquery，注意：jquery要在js文件之前引入，因为bootstrap使用了jquery框架-->
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/jQuery-1.12.4/jquery-1.12.4.js"></script>
    <!--引入bootstrap的js文件-->
    <script src="${pageContext.request.contextPath}/static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
</head>
<body>
<div id="maindiv">
    <form class="form-horizontal" action="${pageContext.request.contextPath}/saveOrUpdateProduct" method="post"
          enctype="multipart/form-data">

        <div class="form-group">
            <label class="col-sm-3 control-label">名称</label>
            <div class="col-sm-7">
                <input type="text" class="form-control" id="prName" name="prName" placeholder="请输入产品名称">
            </div>
            <br><br>
            <label class="col-sm-3 control-label">数量</label>
            <div class="col-sm-7">
                <input type="text" class="form-control" id="prNumber" name="prNumber" placeholder="请输入数量">
            </div> <br><br>
            <label class="col-sm-3 control-label">价格</label>
            <div class="col-sm-7">
                <input type="text" class="form-control" id="prPrice" name="prPrice" placeholder="请输入价格">
            </div> <br><br>
           <%-- 隐藏表单--%>
               <%-- <input type="hidden" class="form-control" id="prSupplier" name="prSupplier" value="">--%>
            <label class="col-sm-3 control-label">供应商id</label>
            <div class="col-sm-7">
                <input type="text" class="form-control" id="prSupplier" name="prSupplier" placeholder="请输入你的ID">
            </div>
        </div>

        <div class="form-group">

        </div>
        <div class="form-group">
            <div class="col-sm-offset-4 col-sm-10">
                <button type="submit" class="btn btn-default">确定</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>


